home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / program / dejava.zip / HelloWorldApp.java < prev    next >
Text File  |  1996-09-09  |  414b  |  24 lines

  1. //
  2. // This is a very simple Java application
  3. //
  4.  
  5. class HelloWorldApp {
  6.   static int Limit = 3;
  7.  
  8.   public static void main( String args[] ) {
  9.     int j = Limit;
  10.  
  11.     switch (Limit) {
  12.       case 1:  j = 1; break;
  13.       case 3:  j = j==1 ? 17: 12; break;
  14.       default: j = 3; break;
  15.     }
  16.  
  17.     for ( int i = 1; i <= Limit; i++ )
  18.       System.out.println( "Hello World!" );
  19.  
  20.     return;
  21.  
  22.   }
  23. }
  24.